package biz.impl;
import biz.UserBiz;
import dao.UserDao;
import dao.impl.UserDaoImpl;
import entity.User;

public class UserBizImpl implements UserBiz{
	private UserDao userDao = new UserDaoImpl();
	
	public int addUser(User user){
		return userDao.addUser(user);
	}
	
	public User findUser(String name){
		return userDao.findUser(name);
	}
	
	public User findUser(int id){
		return userDao.findUser(id);
	}
	
	public int updateUser(User user) throws Exception{
		return userDao.updateUser(user);
	}
}
